package cn.sdc.sfw.dao.model;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public class Beans {

	private static Map beanCache_ = Collections.synchronizedMap(new HashMap());

	private Beans() {
	}

	public static Bean getBean(Class clazz) {
		Bean bean = (Bean) beanCache_.get(clazz);
		if (bean == null) {
			bean = new Bean(clazz);
			beanCache_.put(clazz, bean);
		}
		return bean;
	}
}
